package com.lemonPiggy.UDForm.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotEmpty;

/**
 * 页面自定义对象 form_diy_web_page
 * 
 * @author ruoyi
 * @date 2021-08-02
 */
public class UDFormWebPage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 乐观锁 使用UUID */
    private String id;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 名称 */
    @NotEmpty(message = "名称不能为空")
    @Excel(name = "名称")
    private String name;

    /** 网页代码 */
    @Excel(name = "网页代码")
    private String webPageCode;

    /** 所属应用id */
    @NotEmpty(message = "所属应用id不能为空")
    @Excel(name = "所属应用id")
    private String applicationId;

    /** 所属应用名称 */
    @Excel(name = "所属应用名称")
    private String applicationName;

    private String authorizeType;

    private String authorizeId;

    public String getAuthorizeId() {
        return authorizeId;
    }

    public void setAuthorizeId(String authorizeId) {
        this.authorizeId = authorizeId;
    }

    public String getAuthorizeType() {
        return authorizeType;
    }

    public void setAuthorizeType(String authorizeType) {
        this.authorizeType = authorizeType;
    }

    /** 表单分类 */
    //    @NotEmpty(message = "表单分类不能为空")
    @Excel(name = "表单分类")
    private Long formType;

    @Excel(name = "关联关系")
    private String relationShip;

    public String getRelationShip() {
        return relationShip;
    }

    public void setRelationShip(String relationShip) {
        this.relationShip = relationShip;
    }

    public String getApplicationName() {
        return applicationName;
    }

    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    /** 表单编号*/
    private List<UDFormField> fieldList;

    public List<UDFormField> getFieldList() {
        return fieldList;
    }

    public void setFieldList(List<UDFormField> fieldList) {
        this.fieldList = fieldList;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setWebPageCode(String webPageCode) 
    {
        this.webPageCode = webPageCode;
    }

    public String getWebPageCode() 
    {
        return webPageCode;
    }
    public void setApplicationId(String applicationId) 
    {
        this.applicationId = applicationId;
    }

    public String getApplicationId() 
    {
        return applicationId;
    }
    public void setFormType(Long formType) 
    {
        this.formType = formType;
    }

    public Long getFormType() 
    {
        return formType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("name", getName())
            .append("webPageCode", getWebPageCode())
            .append("applicationId", getApplicationId())
            .append("formType", getFormType())
            .toString();
    }
}
